package com.gui.hospital.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gui.hospital.model.NumberSource;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author 言叶
 * Date：2025/9/4
 */

public interface NumberSourceMapper
        extends BaseMapper<NumberSource> {
    /*
     * 更新状态根据id
     * @param id
     * @param status
     * @return
     */
    @Update("update tb_number_source set status = #{status} where id = #{id} AND status = 0")
    int updateStatusById(@Param("id") Long id,@Param("status") Long status);
}
